home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / pctchnqs / 1991 / number2 / bitmask.hpp < prev    next >
C/C++ Source or Header  |  1991-03-08  |  790b  |  30 lines

  1. //-------------------------------------------------------------//
  2. // File:   BitMask.Hpp                                         //
  3. // Desc:   Definition of a Single-Plane Bitmap Class           //
  4. // Author: Marv Luse, Autumn Hill Software                     //
  5. //-------------------------------------------------------------//
  6.  
  7. #ifndef _BITMASK_HPP_
  8. #define _BITMASK_HPP_
  9.  
  10. //........ BitMask Class
  11.  
  12. class BitMask
  13. {
  14.    protected:
  15.  
  16.       int   width;       // width in pixels
  17.       int   height;      // height in pixels
  18.       int   rowbytes;    // bytes per row
  19.       char *mask;        // pointer to bitmask
  20.  
  21.    public:
  22.  
  23.       BitMask( );
  24.       BitMask( int w, int h, char *m );
  25.      ~BitMask( );
  26.       virtual void draw( int x, int y, int clr );
  27. };
  28.  
  29. #endif
  30.